package com.hairy.nipples;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;
import android.view.MenuItem;

import com.hairy.nipples.sound.BeepService;

public class SmokeDetector extends Activity {
	
	public final static Handler HANDLER = new Handler();

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		Intent beepService = new Intent(this, BeepService.class);
		startService(beepService);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		menu.add(R.string.settings);
		return super.onCreateOptionsMenu(menu);
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		Intent settings = new Intent(this, Settings.class);
		startActivity(settings);
		return super.onOptionsItemSelected(item);
	}
}